-- GENERATED SPELL FOR [Hardknuckle Matriarch] --


function spell0_28213(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(54287,pUnit)
pUnit:RegisterEvent('Sorts_28213', 597, 1)
end

function spell1_28213(pUnit, Event) --@Thunderstomp,n/a--
pUnit:FullCastSpellOnTarget(61580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28213', 601, 1)
end

function Sorts_28213(pUnit, Event)
local choix_sorts_28213 = math.random(0, 1)
if choix_sorts_28213 == 0 then
pUnit:RegisterEvent('spell0_28213', 1, 1)
end
if choix_sorts_28213 == 1 then
pUnit:RegisterEvent('spell1_28213', 1, 1)
end
end

function mob28213_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28213', math.random(1500, 3000), 1)
end

function mob28213_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28213_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28213_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28213, 1, 'mob28213_Action')
RegisterUnitEvent(28213, 2, 'mob28213_Leave')
RegisterUnitEvent(28213, 3, 'mob28213_Kill')
RegisterUnitEvent(28213, 4, 'mob28213_Die')
